<?php
define('MODULE_NAME','now');
$actions = array('index','search','today','custom');
$action = 'index';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = 'index';
}
	
define('ACTION_NAME',$action);

require_once './core/service/fanwe.service.php';
$fanwe = &FanweService::instance();
$fanwe->cache_list[] = 'site';
$fanwe->is_group_city = true;
$fanwe->initialize();

loadCache('city_site_'.CURRENT_CITY_PY);
loadCache('city_area_'.CURRENT_CITY_PY);

require import('module/now');

switch(ACTION_NAME)
{
	case 'index':
		NowModule::index();
	break;
	case 'today':
		NowModule::today();
	break;
	case 'custom':
		NowModule::custom();
	break;
	case 'search':
		NowModule::search();
	break;
}
?>